export const TABLE_CLOUMS = [
    {prop: 'cday', label: "日期", align: 'center', width: 72, fixed: false, sort:true, checked: false},
    {prop: 'product_name', label: "所属产品", width:70, align: 'center', checked: false},
    {prop: 'account_name', label: "广告账号名字", align: 'center', width: 98, fixed: false, checked: false, ishide: true},
    {prop: 'adset_name', label: "广告组名字", align: 'center', width: 70, checked: false, ishide: true},
    {prop: 'ad_name', label: "广告名字", align: 'center', width:70, checked: false, ishide: true},
    {prop: 'ads_status', label: "广告状态", align: 'center', width: 80, checked: false},
    {prop: 'spend', label: "花费金额", align: 'center', width: 70, sort:true, checked: false},
    {prop: 'daily_budget', label: "预算", align: 'center',width: 70,   sort:  'custom', checked: false},
    {prop: 'fb_mobile_purchase', label: "充值人数", align: 'center', width: 60, sort:true, checked: false},
    {prop: 'conversions', label: "成效", sort:  'custom',  align: 'center', checked: false, width:70},
    {prop: 'cost_conversions', label: "成效单价", sort:  'custom',  align: 'center', checked: false, width:88},
    {prop: 'fb_pixel_complete_registration', label: "注册人数", sort:  'custom',  align: 'center', checked: false, width:70},
    {prop: 'cost_fb_pixel_complete_registration', label: "注册单价", sort:  'custom',  align: 'center', checked: false, width:70},
    {prop: 'percent_conversions', label: "首充付费率", align: 'center',  sort:  'custom', checked: false, width:88},
    {prop: 'ctr', label: "点击率", align: 'center',  width: 60, sort:  'custom', checked: false},
    {prop: 'clicks', label: "点击量", align: 'center', width: 60, sort:true, checked: false},
    {prop: 'reach', label: "覆盖人数", align: 'center', width: 60, sort:true, checked: false},
    {prop: 'impressions', label: "展示次数", align: 'center', width: 70, sort:true, checked: false},
    {prop: 'frequency', label: "展示频次", align: 'center', width: 70, sort:true, checked: false},
    {prop: 'fb_pixel_purchase', label: "购物(销量)", sort:  'custom',  align: 'center', checked: false, width:70},
    {prop: 'cost_fb_pixel_purchase', label: "购物单价(销量)", sort:  'custom',  align: 'center', checked: false, width:80},
]
// export const TABLE_CLOUMS = [
//     {prop: 'cday', label: "日期", align: 'center', width: 72, fixed: false, sort:true, checked: false},
//     {prop: 'product_name', label: "所属产品", width:70, align: 'center', checked: false},
//     {prop: 'account_name', label: "广告账号名字", align: 'center', width: 98, fixed: false, checked: false, ishide: true},
//     {prop: 'adset_name', label: "广告组名字", align: 'center', width: 70, checked: false, ishide: true},
//     {prop: 'ad_name', label: "广告名字", align: 'center', width:70, checked: false, ishide: true},
//     {prop: 'preview_url', label: "素材图片", align: 'center',width:70, checked: false},
//     {prop: 'ads_status', label: "广告状态", align: 'center', width: 80, checked: false},
//     {prop: 'spend', label: "花费金额", align: 'center', width: 70, sort:true, checked: false},
//     {prop: 'fb_mobile_purchase', label: "充值人数", align: 'center', width: 60, sort:true, checked: false},
//     {prop: 'fb_mobile_purchase_unique', label: "首充人数", align: 'center', width: 60, sort:true, checked: false},
//     {prop: 'cost_per_unique_conversion', label: "首充单价", align: 'center', width: 60, checked: false},
//     {prop: 'conversions', label: "成效", sort:  'custom',  align: 'center', checked: false, width:70},
//     {prop: 'cost_conversions', label: "成效单价", sort:  'custom',  align: 'center', checked: false, width:88},
//     {prop: 'fb_pixel_purchase', label: "购物(销量)", sort:  'custom',  align: 'center', checked: false, width:70},
//     {prop: 'cost_fb_pixel_purchase', label: "购物单价(销量)", sort:  'custom',  align: 'center', checked: false, width:80},
//     {prop: 'fb_pixel_add_to_cart', label: "加入购物车(销量)", sort:  'custom',  align: 'center', checked: false, width:100},
//     {prop: 'fb_pixel_complete_registration', label: "已完成注册(销量)", sort:  'custom',  align: 'center', checked: false, width:90},
//     {prop: 'cost_fb_pixel_complete_registration', label: "注册单价(销量)", sort:  'custom',  align: 'center', checked: false, width:90},
//     {prop: 'fb_mobile_complete_registration', label: "注册量", align: 'center', width: 60, sort:true, checked: false},
//     {prop: 'mobile_app_install', label: "安装量", align: 'center', width: 60, sort:true, checked: false},
//     {prop: 'ctr', label: "点击率", align: 'center',  width: 60, sort:  'custom', checked: false},
//     {prop: 'clicks', label: "点击量", align: 'center', width: 60, sort:true, checked: false},
//     {prop: 'reach', label: "覆盖人数", align: 'center', width: 60, sort:true, checked: false},
//     {prop: 'impressions', label: "展示次数", align: 'center', width: 70, sort:true, checked: false},
//     {prop: 'frequency', label: "展示频次", align: 'center', width: 70, sort:true, checked: false},
//     {prop: 'mobile_app_install_unique', label: "安装量-去重", align: 'center', width: 74, sort:true, checked: false},
//     {prop: 'fb_mobile_complete_registration_unique', label: "注册量-去重", align: 'center',  sort:true, checked: false},
// ]
export const COLUMS_SORT = [
    'cday', 'account_name', 'adset_name', 'ad_name', 'ads_status', 'reach', 'mobile_app_install', 'clicks', 'fb_mobile_complete_registration', 'impressions', 'frequency', 'spend', 'fb_mobile_purchase', 'cost_per_unique_conversion', 'mobile_app_install_unique', 'fb_mobile_complete_registration_unique', 'fb_mobile_purchase_unique', 'product_name'
]

//清空默认要显示的字段
// export const DEFAULT_COLUMS = [
//     'cday', 'account_name', 'ads_status','spend','fb_pixel_purchase','cost_fb_pixel_purchase','fb_pixel_add_to_cart', 'fb_pixel_complete_registration' ,'ctr', 'clicks'
// ]
export const DEFAULT_COLUMS = [
    'cday', 'account_name', 'ads_status', 'spend', 'conversions','cost_conversions', 'percent_conversions'
]

export const VERSION = 'v9';

export const SHOW_DIMENSION = [
    {value: 'product_id', label: '按产品'},
    {value: 'account_id', label: '按广告户'},
    {value: 'ad_id', label: '按广告'},
]